package demo1;

import java.util.Date;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Date date = new Date();
        Video v1 = new Video("视频1", date);
        Video v2 = ((Video) v1.clone());
        System.out.println("v1="+v1);
        System.out.println("v2="+v2);
        date.setTime(1234567);
        System.out.println("v1="+v1);
        System.out.println("v2="+v2);
    }
}
